package com.youdianstar.app.adapter

import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.youdianstar.app.ui.reward.PointRsFragment


/**
 * File: RedeemTabAdapter
 * Author: 82149 Create: 2022/2/28 17:44
 * Changes (from 2022/2/28)
 * --------------------------------------------------
 * description:
 * ---------------------------------------------------
 *
 */
class PointTabAdapter(mActivity : AppCompatActivity, var titleTags: MutableList<String>) : FragmentStateAdapter(mActivity) {
    override fun getItemCount(): Int {
        return titleTags.size
    }

    override fun createFragment(position: Int): Fragment {
        return PointRsFragment.newInstance(position,titleTags[position])
    }
}